SCALA_SRC :=
SCALA_SRC += ch/epfl/lara/core/ast/Trees.scala
SCALA_SRC += ch/epfl/lara/core/ast/PrettyPrint.scala
SCALA_SRC += ch/epfl/lara/core/parser/Parser.scala
SCALA_SRC += ch/epfl/lara/core/parser/Test.scala

SCALAC := scalac
RM := rm -rf
MKDIR := mkdir

CLASSES_DIR := classes

all: core
new: clean core
clean:
	$(RM) $(CLASSES_DIR)

core: $(SCALA_SRC)
	$(MKDIR) -p classes
	$(SCALAC) -classpath $(CLASSES_DIR) -d $(CLASSES_DIR) $?
